package com.blr.service;

import com.blr.dao.MenuMapper;
import com.blr.entity.Menu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: MenuService
 * Description:
 * Date: 2022/11/16 PM 6:30:55
 * <p>
 * project: codes
 * package: com.blr.service
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
@Service
public class MenuService {

    private final MenuMapper menuMapper;

    @Autowired
    public MenuService(MenuMapper menuMapper) {
        this.menuMapper = menuMapper;
    }

    public List<Menu> getAllMenu() {
        return menuMapper.getAllMenu();
    }
}
